﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace android_charge.compent
{
    public partial class PhoneHandle : UserControl
    {
        public PhoneHandle()
        {
            InitializeComponent();
        }

        private void triangleButton1_Click(object sender, EventArgs e)
        {
            if (this.Parent is Amazon tool) {
                tool.adb_shell_cmd("input keyevent KEYCODE_BACK");
            }
        }

        private void customControl11_Click(object sender, EventArgs e)
        {
            if (this.Parent is Amazon tool)
            {
                tool.adb_shell_cmd("input keyevent KEYCODE_HOME");
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (this.Parent is Amazon tool)
            {
                tool.adb_shell_cmd("input keyevent 187");
            }
        }
    }
}
